<template>
  <el-card>
    <el-form inline>
      <el-form-item>
        <el-input placeholder="角色名称"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" :icon="Search">查询</el-button>
        <el-button>清空</el-button>
      </el-form-item>
    </el-form>

    <el-button type="primary">添加</el-button>
    <el-button type="danger">批量删除</el-button>

    <el-table :data="[{}]" border>
      <el-table-column type="selection" width="60" align="center"></el-table-column>
      <el-table-column type="index" width="60" align="center" label="序号"></el-table-column>
      <el-table-column label="角色名称" prop="roleName"></el-table-column>
      <el-table-column label="操作" width="200" fixed="right">
        <template v-slot="{row}">
          <el-button type="info" :icon="User" size="small"></el-button>
          <el-button type="warning" :icon="Edit" size="small"></el-button>
          <el-button type="danger" :icon="Delete" size="small"></el-button>
        </template>
      </el-table-column>
    </el-table>


    <el-dialog :title="`添加角色`">
      <el-form label-width="100px">
        <el-form-item label="角色名称">
          <el-input placeholder="用户名" />
        </el-form-item>
      </el-form>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary">保存</el-button>
          <el-button>取消</el-button>
        </div>
      </template>
    </el-dialog>
  </el-card>
</template>

<script lang="ts">
export default {
  name: "role",
};
</script>

<script lang="ts" setup>
import { Delete, Edit, Search,User } from "@element-plus/icons-vue";
import {ref,onMounted,reactive} from 'vue'
import { ElMessage } from "element-plus";
import { useRouter } from "vue-router";

const router = useRouter()



</script>

<style scoped></style>
